#include <stdio.h>

int main(){
	int i=1,j,k=1;
	double e=1,a=1;
	while (a>=10e-5){
		for (j=1;j<=i;j++){
			k *= j;
		}
		a = 1.0/k;
		e += a;
		k = 1;
		i++;
	}
	printf("%f %d", e, i-1);
	return 0;
}
